<script>
    import { afterNavigate } from '$app/navigation';
    import { page } from '$app/stores';

    import { activeChannel } from '$lib/store';
    import ActiveChannel from '$lib/components/ActiveChannel.svelte';

    afterNavigate(async () => {
        let { channel } = $page.params;
        activeChannel.update((value) => {
            value.set(channel)
            return value;
        });
    });
</script>

<ActiveChannel />
